import QtQuick 1.0

Rectangle {
    width: 360; height: 640

    ListModel {
	id: appModel
	ListElement { name: "Google"; icon: "pics/0.png" }
	ListElement { name: "YouTube"; icon: "pics/1.png" }
	ListElement { name: "Facebook"; icon: "pics/2.png" }
	ListElement { name: "MySpace"; icon: "pics/3.png" }
	ListElement { name: "Blogger"; icon: "pics/4.png" }
	ListElement { name: "Flickr"; icon: "pics/5.png" }
	ListElement { name: "WordPress"; icon: "pics/6.png" }
	ListElement { name: "Technorati"; icon: "pics/7.png" }
	ListElement { name: "Heart"; icon: "pics/8.png" }
	ListElement { name: "Twitter"; icon: "pics/9.png" }
	ListElement { name: "Yahoo"; icon: "pics/10.png" }
	ListElement { name: "DesignFloat"; icon: "pics/11.png" }
	ListElement { name: "Reddit"; icon: "pics/12.png" }
	ListElement { name: "Stumbleupon"; icon: "pics/13.png" }
	ListElement { name: "Delicious"; icon: "pics/14.png" }
	ListElement { name: "Digg"; icon: "pics/15.png" }
	ListElement { name: "RSS"; icon: "pics/16.png" }
    }

    Text {
	id: myText
	anchors.bottom: parent.bottom
	text: "current"
	anchors.horizontalCenter: parent.horizontalCenter
    }

    CoverFlow {
	listModel: appModel

	width: parent.width
	anchors.top: parent.top
	anchors.bottom: myText.top

	onIndexChanged: {
	    myText.text = "Current index: " + index
	}

	itemWidth: 120
	itemHeight: 120

	color: "lightblue"
    }

    Image {
	source: "pics/close.png"
	anchors.right: parent.right
	anchors.top: parent.top
	anchors.margins: 10

	MouseArea {
	    anchors.fill: parent
	    onClicked: Qt.quit()
	}
    }
}
